package com.rongke.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.rongke.mapper.ExperienceGoodsMapper;
import com.rongke.mapper.NewGoodsMapper;
import com.rongke.model.ExperienceGoods;
import com.rongke.model.NewGoods;
import com.rongke.service.NewGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @NewGoodsServiceImpl
 * @新品ServiceImpl
 * @version : Ver 1.0
 */
@Service
public class NewGoodsServiceImpl extends ServiceImpl<NewGoodsMapper, NewGoods> implements NewGoodsService {

    @Autowired
    private NewGoodsMapper newGoodsMapper;

    /**
     * @根据条件查找体验众测
     * @param newGoods
     * @return
     */
    @Override
    public List<NewGoods> selectByCondition(NewGoods newGoods) {
        return newGoodsMapper.selectByCondition(newGoods);
    }

    @Override
    public List<NewGoods> selectExpGoodsList(Map map) {

        return newGoodsMapper.selectExpGoodsList(map);
    }
}
